package com.zufe.Test3;

public class Test {
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.play();
        phone.fun();
        test();
    }
    public static void test() {
        new IPlay(){
            @Override
            public void play() {
                System.out.println("play");
            }
        }.play();

        new Fun(){
            @Override
            public void fun() {
                System.out.println("fun");
            }
        }.fun();
    }
}
